﻿<%@ Page Title="" Language="C#" MasterPageFile="~/homepagew.master" AutoEventWireup="true"
    CodeBehind="details.aspx.cs" Inherits="Nhom14_HTTTHD_BuyMe.details" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TopBanner" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="detail_headline">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
                <tr>
                    <td>
                        <h2>
                            
                        </h2>
                    </td>
                    <td width="170">

                    </td>
                    <td width="5">
                        &nbsp;
                    </td>
                    <td width="120">
                        <asp:HyperLink ID="button_make_offer" CssClass="button_make_offer" runat="server" NavigateUrl="~/bid.aspx" >Make an Offer</asp:HyperLink>
                    </td>
                </tr>
            </tbody>
        </table>
        <div style="padding-bottom: 7px;">
        </div>
    </div>
 <div class="inlister">
        <div style="padding-top: 40px;">
          
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
        SelectedIndex="0">
        <Tabs>
            <telerik:RadTab Text="Profile">
            </telerik:RadTab>
            <telerik:RadTab Text="Tab new">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="RadPageView1" runat="server">
        
            <asp:DataList ID="DataList1" runat="server" DataKeyField="id" 
                DataSourceID="SqlDataSource1" onitemdatabound="DataList1_ItemDataBound">
                <ItemTemplate>
                    <div class="inlister2" style="width: 350px">
                        <table class="outer" width="100%" cellspacing="0" cellpadding="5" border="0" style="margin: 0 0 15px 0;">
                            <tbody>
                                <tr class="filter1">
                                    <td colspan="2">
                                        Website Profiles
                                    </td>
                                </tr>
                                <tr class="hilite1">
                                    <td width="90">
                                        <b>Listed</b>
                                    </td>
                                    <td class="grid">
                                        December 20, 2011
                                    </td>
                                </tr>
                                <tr class="">
                                    <td>
                                        <b>Category</b>
                                    </td>
                                    <td class="grid">
                                        Apparel
                                    </td>
                                </tr>
                                <tr class="hilite1">
                                    <td>
                                        <b>Status</b>
                                    </td>
                                    <td class="grid">
                                        <%# Eval("name")%>
                                    </td>
                                </tr>
                                <tr class="">
                                    <td>
                                        <b>Visitors</b>
                                    </td>
                                    <td class="grid">
                                        <%# Eval("visitiors")%>
                                        (daily)
                                    </td>
                                </tr>
                                <tr class="hilite1">
                                    <td>
                                        <b>Page Views</b>
                                    </td>
                                    <td class="grid">
                                        <%# Eval("page_views")%>
                                        (daily)
                                        <br>
                                        Number of Members:
                                        <%# Eval("members")%>
                                    </td>
                                </tr>
                                <tr class="">
                                    <td>
                                        <b>Income</b>
                                    </td>
                                    <td class="grid">
                                        <%# "$" + Eval("income")%>
                                        per month
                                    </td>
                                </tr>
                                <tr class="hilite1">
                                    <td>
                                        <b>Expenses</b>
                                    </td>
                                    <td class="grid">
                                    </td>
                                </tr>
                                <tr class="">
                                    <td>
                                        <b>Asking Price</b>
                                    </td>
                                    <td class="grid">
                                        <%# "$" + Eval("asking_price")%>
                                    </td>
                                </tr>
                                <tr class="hilite1">
                                    <td>
                                        <b>URL</b>
                                    </td>
                                    <td class="grid">
                                        <a rel="nofollow" target="_blank" href='<%# Eval("site_url")%>'>
                                            <%# Eval("site_url")%></a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                    <div class="inlister1">
                        <img src='<%# Eval("image") %>' alt="">
                        <div class="detail_desc">
                        </div>
                        <asp:Label ID="premiere" Visible="false" CssClass="icon_premiere_full" runat="server" Text=""></asp:Label>
                    </div>
                    <br style="clear: both;">
                    <div class="detail_desc">

                </ItemTemplate>
            </asp:DataList>
            <asp:Button ID="addtowatch" runat="server" Text="Add to watch list" 
                onclick="addtowatch_Click" />
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:websitebrokenConnectionString %>"
                SelectCommand="SELECT website.id, website.id_account, website.id_website_status, website.image, website.id_type, website.timestamp, website.site_name, website.site_url, website.description, website.visitiors, website.page_views, website.income, website.cost_to_run, website.disk_space_used, website.bandwidth_used, website.members, website.asking_price, website.date_started, website.stats_availabale, website_status.name FROM website INNER JOIN website_status ON website.id_website_status = website_status.id WHERE (website.id = @id) ">
                <SelectParameters>
                    <asp:QueryStringParameter DefaultValue="0" Name="id" QueryStringField="id" Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView2" runat="server">

        <div class="inlister2" style="width: 350px">
            <table class="outer" width="100%" cellspacing="0" cellpadding="5" border="0" style="margin: 0 0 15px 0;">
                                <tr class="filter1">
                                    <td colspan="2">
                                       
                                    </td>
                                </tr>
                                <tr class="hilite1">
                                    <td width="90">
                                     
                                    </td>
                                    <td class="grid">
                                       
                                    </td>
                                </tr>
                        </table>
        </div>

        </telerik:RadPageView>
    </telerik:RadMultiPage>

</div>
</div>

        <div class="boxclear">
        </div>

    <br />
    <h3>Bid for this website:</h3>

    <asp:DataList ID="DataList2" runat="server" DataSourceID="SqlDataSource2" 
        DataKeyField="id" onitemdatabound="DataList2_ItemDataBound">
         <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" Font-Size="Larger" />
        <ItemTemplate>
              <asp:Label ID="Label1" runat="server" Text="Date Times: " ForeColor="#000066" Font-Bold="True"></asp:Label>
            <asp:Label ID="timestampLabel" runat="server" Text='<%# Eval("timestamp") %>' />
            <br />
            
             <asp:Label ID="Label3" runat="server" Text="Price:" ForeColor="#000066" Font-Bold="True"></asp:Label>
            <asp:Label ID="priceLabel" runat="server" Text='<%# Eval("price") %>' ForeColor="#3366CC" />
            <br />
            
             <asp:Label ID="Label4" runat="server" Text="Message: " ForeColor="#000066" Font-Bold="True"></asp:Label>
            <asp:Label ID="messageLabel" runat="server" Text='<%# Eval("message") %>' />
            <br />
           
            <asp:Label ID="Label5" runat="server" Text="User Bid: " ForeColor="#000066" Font-Bold="True"></asp:Label>
            <asp:Label ID="usernameLabel" runat="server" Text='<%# Eval("username") %>' />
             <br />
            <asp:Button ID="btnLogBid" runat="server" CommandArgument='<%# Eval("id") %>' 
                Text="Create transaction" onclick="btnLogBid_Click" ForeColor="#000066" Font-Bold="True" />
            <br />
          <asp:Label ID="Label6" runat="server" Text=".........................................................................................................................................................." ForeColor="#000066" Font-Bold="True"></asp:Label>
        </ItemTemplate>
    </asp:DataList>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:WebsitebrokenConnection %>" 
        
        
        SelectCommand="SELECT bid_website.timestamp, bid_website.price, bid_website.message, account.username, bid_website.id FROM bid_website INNER JOIN account ON bid_website.id_account = account.id WHERE (bid_website.id_website = @id)">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="id" QueryStringField="id" />
        </SelectParameters>
    </asp:SqlDataSource>
 
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SidebarContent" runat="server">

    <div class="account">
        <h2>
            My Account</h2>
        <ul>
            <li><a href="myhomepage.aspx">My Websites-Domain</a></li>
            <li><a href="mybid.aspx">My Bibs</a></li>
            <li><a href="mytransaction.aspx">My Transaction</a></li>
            <li><a href="mymessage.aspx">My Messages</a></li>
        </ul>
    </div>
</asp:Content>
